package com.jnu.hospitalexamination.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jnu.hospitalexamination.dto.OrdersUserQueryDTO;
import com.jnu.hospitalexamination.entity.Users;
import com.jnu.hospitalexamination.entity.vo.UserOrderVO;
import com.jnu.hospitalexamination.service.UsersService;
import com.jnu.hospitalexamination.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
* @author Nowonder
* @description 针对表【users】的数据库操作Service实现
* @createDate 2024-07-21 23:00:48
*/
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users>
    implements UsersService{
    @Autowired
    UsersMapper usersMapper;

    @Override
    public List<UserOrderVO> findUserByConditions(String phone, String realName, Integer sex, Integer smId, Date orderDate, Integer state) {
        return usersMapper.findOrdersByConditions(phone, realName, sex, smId, orderDate, state);
    }
}




